package cn.htsyb.synergy.utils;


import java.util.concurrent.TimeUnit;
/**
 * 
 * @author lakeside hubin_yuan.410@hotmail.com
 * @version V1.0.0
 * @since 1.0
 * @date 2022/5/11
 */
public class ThreadUtil {


    /**
     * 线程等待
     *
     * @param millis 毫秒数
     */
    public static void sleep(long millis) {
        try {
            TimeUnit.MILLISECONDS.sleep(millis);
        } catch (InterruptedException e1) {
            Thread.interrupted();
        }
    }

}
